package club.gskj.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/***
 * 1. 远程调用其他服务的方法
 *  1. 引入openFeign
 *  2. 编写接口,告诉cloud要调用远程服务
 *      1.声明接口的每一个方法都是调用远程服务的那些请求方法
 *  3. 开启远程服务调用功能
 *
 */
@EnableRedisHttpSession// 开启分布式sesison
@EnableFeignClients("club.gskj.gulimall.member.feign") // 指定接口调用服务的包名
@EnableDiscoveryClient //开启服务注册\发现
@SpringBootApplication
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
